
export function formatGap(start, end) {
    let stayTimeGap = new Date(end).getTime() - new Date(start).getTime()
    let stayHour = Math.floor(stayTimeGap / (3600 * 1000)) // 小时
    let leave1 = stayTimeGap % (3600 * 1000)
    let stayMin = Math.floor(leave1 / (60 * 1000)) // 分钟
    let leave2 = leave1 % (60 * 1000)
    let staySec = Math.floor(leave2 / 1000) // 秒
    return stayHour + "时" + stayMin + "分" + staySec + "秒"
}

